package org.example.sdk;

import java.io.Serializable;

/**
 * 封装认证请求数据bean
 * @author weichang_ding
 *
 */
public class JitGatewayUtilBean implements Serializable {
    // 认证URL
    // private String authURL = "http://IPPort/MessageService";
    // private String authURL = "IPPort/MessageService";
    private String authURL;
    // 认证方式
    private String authMode;
    // token
    private String token;
    // 二维码随机数
    private String qrcode;
    // session中原文
    private String original_data;
    // 证书认证请求包
    private String signed_data;
    // 客户端返回的认证原文
    private String original_jsp;
    // 远程地址
    private String remoteAddr;
    // 生成二维码URL
    // private String generateQRCodeURL = "http://IPPort/qrcode_generate";
    // private String generateQRCodeURL = "IPPort/jit_qrcode_generate";
    private String generateQRCodeURL;
    // 查询二维码URL
    // private String queryQRCodeStateURL="http://IPPort/qrcode_poll?Service_Type=qrcode_poll&jit_qrcode=";
    // private String queryQRCodeStateURL="IPPort/jit_qrcode_poll?Service_Type=qrcode_poll&jit_qrcode=";
    private String queryQRCodeStateURL;

    public String getAuthURL() {
        //return authURL.replace("IPPort", configMap.get(ConfigConstant.KEY_GATEWAY_IPPORT));
        //return authURL.replaceFirst("IPPort", configMap.get(ConfigConstant.KEY_GATEWAY_IPPORT).toString());
        //return configMap.get(JitConstant.ConfigConstant.KEY_AUTH_URL).toString();
        return authURL;
    }

    public void setAuthURL(String authURL) {
        this.authURL = authURL;
    }

    public String getAuthMode() {
        return authMode;
    }
    public void setAuthMode(String authMode) {
        this.authMode = authMode;
    }
    public String getToken() {
        return token;
    }
    public void setToken(String token) {
        this.token = token;
    }
    public String getQrcode() {
        return qrcode;
    }
    public void setQrcode(String qrcode) {
        this.qrcode = qrcode;
    }
    public String getOriginal_data() {
        return original_data;
    }
    public void setOriginal_data(String original_data) {
        this.original_data = original_data;
    }
    public String getSigned_data() {
        return signed_data;
    }
    public void setSigned_data(String signed_data) {
        this.signed_data = signed_data;
    }
    public String getOriginal_jsp() {
        return original_jsp;
    }
    public void setOriginal_jsp(String original_jsp) {
        this.original_jsp = original_jsp;
    }
    public String getRemoteAddr() {
        return remoteAddr;
    }
    public void setRemoteAddr(String remoteAddr) {
        this.remoteAddr = remoteAddr;
    }
    public String getGenerateQRCodeURL() {
        //return generateQRCodeURL.replace("IPPort", configMap.get(ConfigConstant.KEY_GATEWAY_IPPORT));
        //return generateQRCodeURL.replaceFirst("IPPort", configMap.get(ConfigConstant.KEY_GATEWAY_IPPORT).toString());
        //return generateQRCodeURL;
        //return configMap.get(JitConstant.ConfigConstant.KEY_GENERATEQRCODE_URL).toString();
        return generateQRCodeURL;
    }

    public void setGenerateQRCodeURL(String generateQRCodeURL) {
        this.generateQRCodeURL = generateQRCodeURL;
    }

    public String getQueryQRCodeStateURL() {
        //return queryQRCodeStateURL.replace("IPPort", configMap.get(ConfigConstant.KEY_GATEWAY_IPPORT));
        //return queryQRCodeStateURL.replaceFirst("IPPort", configMap.get(ConfigConstant.KEY_GATEWAY_IPPORT).toString());
        //return queryQRCodeStateURL;
        //return configMap.get(JitConstant.ConfigConstant.KEY_QUERYQRCODESTATE_URL).toString();
        return queryQRCodeStateURL;
    }

    public void setQueryQRCodeStateURL(String queryQRCodeStateURL) {
        this.queryQRCodeStateURL = queryQRCodeStateURL;
    }
}
